package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WswDeviceMapper;
import com.ruoyi.system.domain.WswDevice;
import com.ruoyi.system.service.IWswDeviceService;

/**
 * 设备信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-09
 */
@Service
public class WswDeviceServiceImpl implements IWswDeviceService 
{
    @Autowired
    private WswDeviceMapper wswDeviceMapper;

    /**
     * 查询设备信息
     * 
     * @param id 设备信息ID
     * @return 设备信息
     */
    @Override
    public WswDevice selectWswDeviceById(Long id)
    {
        return wswDeviceMapper.selectWswDeviceById(id);
    }

    /**
     * 查询设备信息列表
     * 
     * @param wswDevice 设备信息
     * @return 设备信息
     */
    @Override
    public List<WswDevice> selectWswDeviceList(WswDevice wswDevice)
    {
        return wswDeviceMapper.selectWswDeviceList(wswDevice);
    }

    /**
     * 新增设备信息
     * 
     * @param wswDevice 设备信息
     * @return 结果
     */
    @Override
    public int insertWswDevice(WswDevice wswDevice)
    {
        return wswDeviceMapper.insertWswDevice(wswDevice);
    }

    /**
     * 修改设备信息
     * 
     * @param wswDevice 设备信息
     * @return 结果
     */
    @Override
    public int updateWswDevice(WswDevice wswDevice)
    {
        return wswDeviceMapper.updateWswDevice(wswDevice);
    }

    /**
     * 批量删除设备信息
     * 
     * @param ids 需要删除的设备信息ID
     * @return 结果
     */
    @Override
    public int deleteWswDeviceByIds(Long[] ids)
    {
        return wswDeviceMapper.deleteWswDeviceByIds(ids);
    }

    /**
     * 删除设备信息信息
     * 
     * @param id 设备信息ID
     * @return 结果
     */
    @Override
    public int deleteWswDeviceById(Long id)
    {
        return wswDeviceMapper.deleteWswDeviceById(id);
    }
}
